package com.ketangpai.admin.mapper;



import com.ketangpai.admin.entity.Work;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface WorkMapper {
    Work selectById(@Param("id") Integer id);

    List<Work> selectWorkList(@Param("courseId") Integer courseId,
                              @Param("status") Integer status,
                              @Param("offset") Integer offset,
                              @Param("limit") Integer limit);

    Long countWorkList(@Param("courseId") Integer courseId,
                       @Param("status") Integer status);

    int insert(Work work);

    int update(Work work);

    int deleteById(@Param("id") Integer id);

    Integer selectGroupId(Integer id);
}
